<?xml-stylesheet href="xsltforms/xsltforms.xsl" type="text/xsl"?>
<!--?xsltforms-options debug="yes"?-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:xforms="http://www.w3.org/2002/xforms"
	xmlns:ev="http://www.w3.org/2001/xml-events"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<head>
	<title>Management Stok</title>
	<meta charset="UTF-8" />
	<xforms:model>
		<xforms:instance id="entity" src="./views/data/stok.xml" />
		<xforms:instance id="entities" src="./views/data/entities.xml" />
		<xforms:instance id="barangs" src="./views/data/barangs.xml" />
		<xforms:bind id="entitasUuid" nodeset="/stok/entitasUuid" />
		<xforms:bind id="barangUuid" nodeset="/stok/barangUuid" />
		<xforms:bind id="total" nodeset="/stok/total" />
	</xforms:model>
	<style>
	/*
		.xforms-group-content {
			margin-top: 20px;
			margin-left: auto;
			margin-right: auto;
			width: 200px;
			border: 1px solid #000000;
		}
		
		.xforms-label,.xforms-value {
			margin-left: 10px;
			margin-top: 5px;
			display: block;
		}
		
		.xforms-value {
			display: block;
		}
		
		.grid-list {
			float: right;
		}
		*/
	</style>
</head>
<body>
	<xforms:group>
	<!--
	<entitasUuid />
	<barangUuid />
	<total /> 
	 -->
		<xforms:select1 bind="entitasUuid" appearance="min">
			<xforms:label>Nama Perusahaan</xforms:label>
			<xforms:itemset nodeset="instance('entities')/entity">
				<xforms:value ref="uuid" />
				<xforms:label ref="namaEntitas" />
			</xforms:itemset>
		</xforms:select1>
		<xforms:select1 bind="barangUuid" appearance="min">
			<xforms:label>Nama Barang</xforms:label>
			<xforms:itemset nodeset="instance('barangs')/barang">
				<xforms:value ref="uuid" />
				<xforms:label ref="namaBarang" />
			</xforms:itemset>
		</xforms:select1>
		<xforms:input bind="total">
			<xforms:label>Jumlah Barang</xforms:label>
		</xforms:input>
		<!--  
		<xforms:select1 bind="entity" appearance="min">
			<xforms:label>Perusahaan</xforms:label>
			<xforms:itemset nodeset="instance('select')/entity">
				<xforms:value ref="uuid" />
				<xforms:label ref="namaEntitas" />
			</xforms:itemset>
		</xforms:select1>
		-->
	</xforms:group>
</body>
</html>
